package com.lzx.adx.report.enums;

import lombok.Getter;

public enum TaoBaoCovertKsEnums {
    cl("5","84","落地页访问对应媒体唤醒"),
    pay("11","3","付费"),


    ;

    @Getter
    private String tbCode;

    @Getter
    private String kscode;

    @Getter
    private String desc;

    TaoBaoCovertKsEnums(String tbCode, String kscode, String desc) {
        this.tbCode = tbCode;
        this.kscode = kscode;
        this.desc = desc;
    }

    public static String getKsCode(String tbCode){
        for (TaoBaoCovertKsEnums value : TaoBaoCovertKsEnums.values()) {
            if(value.getTbCode().equals(tbCode)){
                return value.getKscode();
            }
        }
        return null;
    }
}
